
public class ComplexJava
{
    public static void main(String[] args)
    {   
        System.out.println("Welcome to Simple Java \n");
        Person p1 = new Person();
        p1.setFirstName("John");
        p1.setAge(21);
        Person p2 = new Person();
        p2.setFirstName("Jeff");
        p2.setAge(22); 
        System.out.println("This program calculates the average age");
        int average =( p1.getAge() + p2.getAge() )/2;
        System.out.println("Average age is : " + average);
 
    }   
}
